package com.lyl.service;

import com.lyl.domain.SysPrivilege;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * @author lylbell
 * @date 2021-06-22 13:31
 */
    
public interface SysPrivilegeService extends IService<SysPrivilege>{


    /**
     * 获取所有菜单对应的权限，并判断该角色是否拥有该权限
     * @param id
     * @param roleId
     * @return
     */
    List<SysPrivilege> findAllSysPrivilege(Long id, Long roleId);
}
